use HOST_STATIC_LINKING instead of hardcoding -static
authorJo-Philipp Wich <[email protected]>
Sun, 12 Aug 2012 12:34:30 +0000 (12:34 +0000)
committerJo-Philipp Wich <[email protected]>
Sun, 12 Aug 2012 12:34:30 +0000 (12:34 +0000)
SVN-Revision: 33140

Makefile

index 640dd23ee539f35429a1470ba671af43ea876d1a..29946607601807f16ffef0abc7450587bd2900e3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ include $(INCLUDE_DIR)/host-build.mk
 include $(INCLUDE_DIR)/kernel.mk
 
 define cc
-       $(HOSTCC) $(HOST_CFLAGS) -include endian.h -static -o $(HOST_BUILD_DIR)/bin/$(firstword $(1)) $(foreach src,$(1),src/$(src).c) $(2)
+       $(HOSTCC) $(HOST_CFLAGS) -include endian.h $(HOST_STATIC_LINKING) -o $(HOST_BUILD_DIR)/bin/$(firstword $(1)) $(foreach src,$(1),src/$(src).c) $(2)
 endef
 
 define Host/Compile